package com.wgz.sbm.controller;

import com.wgz.sbm.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpSession;

/**
 * @author 王宫泽
 * @date 2021/4/11
 */
@Controller
public class ForwardController {
    @GetMapping(path={"/","index","/index.html"})
    public String index(){
        return "login";
    }
    @GetMapping("/main")
    public String index(User user, HttpSession session, Model model) {

        return "main";
    }
    @GetMapping("/form.html")
    public String form(User user, HttpSession session, Model model) {

        return "table/form";
    }
}